
define(["business/services/constant"], function (constant) {
    var vedio_url = constant.config.BASEURL_VIDEO;//ip
    var vedio_base = constant.config.CONSTANT_VEDIO;//elink_video/api/video
    var couseCon =   constant.config.CONSTANT_COURSECon;//课程通用elink_video/api/course
    var videoCata = constant.config.CONSTANT_videoCata;//elink_video/api/videocategory
    var chapter = constant.config.CONSTANT_chapter;//elink_video/api/chapter
    var collect = constant.config.CONSTANT_collect;//elink_video/api/videocollection
    var enroll = constant.config.CONSTANT_enroll;
    var parctice_url= constant.config.CONSTANT_PRACTICE;
    var file_url = constant.config.CONSTANT_FILE;
    var boster_url = constant.config.CONSTANT_BOSTBAR;
    var ceshiurl = "http://"+allUrl+":8082";
    var ceshid = "elink_video/api/video";

    return {
        getPracticeTopCategory:function(requestion){
            return constant.httpSend(baseUrl,parctice_url,requestion);
        },
        getSameVideo:function(requestion){
            return constant.httpSend(vedio_url,vedio_base,requestion);
        },
        getcourse:function(requestion){
            return constant.httpSend(vedio_url,couseCon,requestion);
        },
        getcourseCata:function(requestion){
            return constant.httpSend(vedio_url,videoCata,requestion);
        },
        getchapter:function(requestion){
            return constant.httpSend(vedio_url,chapter,requestion);
        },
        getcollect:function(requestion){
            return constant.httpSend(vedio_url,collect,requestion);
        },
        getenroll:function(requestion){
            return constant.httpSend(vedio_url,enroll,requestion);
        },
        postVideo:function(requestion){
            return constant.httpSend(ceshiurl,ceshid,requestion);
        }

    }
});

